package index.oop.lesson;

public class instanceOfStudent {
    public static void main(String[] args) {
        //测试类
        //创造了一个学生对象 根据学生类的模版
        //java写好的对象  满足不了我们的需求
        //自己创建一个类
        //jvm 自带一个空参的构造方法

//        Student stu2=new Student("xiaoxiao",23,"male");
        Student stu1=new Student();
        stu1.setName("xiaoming");
        System.out.println(stu1.getName());
        //
        stu1.setAge(1);
        System.out.println(stu1.getAge());
        stu1.setGender("男");
        System.out.println(stu1.getGender());
        //key value

        //String
        String str="123";
        System.out.println(str.length());
        String str2="";
        System.out.println(str2.isEmpty());
        String str3="doraemon";
        String str4="doraemon";
        System.out.println(str3.equals(str4));

    }
}
